<?php
    require_once 'include_dao.php';
    ini_set("display_errors", $DISPLAY_ERROR);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="./resources/css/frontend.css" media="screen" />
        <style type="text/css">


            body{
            margin:0px;
            padding: 0px;
            }
            .capaprincipal{
                padding:0;
                font-size:12px;
                margin:0;
                width: 890px;
                height: 570px;
                background: url(resources/img/Top10.jpg) no-repeat;
                }

            .capa{
                margin: 0px;
                padding: 0px;
                background: url(resources/img/Servicios.png) no-repeat;
                height: 570px;
                width: 460px;
            }

            
            .contenido {
	padding: 20px;
	color:#000;
	font-size: 16px;
	height: 460px;
	font-family: Georgia, "Times New Roman", Times, serif;
            }
			
			.TituloLista{
	color:#437B27;
	font-size: 16px;
	font-family: Georgia, "Times New Roman", Times, serif;
				}
            .menu{
	height: 35px;
	color:#437B27;
	font-size: 14px
}
            .menu a {text-decoration: none; color:#437B27; font-size: 14px; }
            .menu a.hover {color:#437B27; font-size: 14px; }
            ol{ padding: 10px; margin: 10px}
            ol li {padding: 5px; margin: 5px}
            .titulotexto
            {
                text-align: center;
                color: #407928;
                border-bottom: 1px solid #407928;
                border-top: 1px solid #407928;
                font-weight: bold;
                font-size: 24px;
                padding: 3px;
            }
        </style>
    </head>

    <body>
<?php
    
    $Lista = DAOFactory::getListaContenidoDAO()->load($LISTA_TOP10);
    $Contenidos = DAOFactory::getContenidoDAO()->queryByIdLista($Lista->id);
    
?>
        <div class="capaprincipal">
            <div class="capa">
                <table width="100%">
                    <tr>
                        <td colspan="2" style="text-align: center;">
                            <img src="resources/img/The-pub-solo-sin-titulo.gif" alt="" width="200"/>
                            <div style="text-align: center; padding: 3px">
                                <span class="titulotexto">
                            <?php
                           if($_SESSION['_IDIOMA']==$IDIOMA_ESP)
                                    echo $Lista->nombre;
                                else
                                    echo $Lista->nombre;
                            ?>
                                </span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="contenido" valign="top"><div class="TituloLista"><?php echo Idioma("Listado de nuestro top 10 canciones de la semana:","List of our top 10 songs of the week:");?></div> 
                            <ol class="menu">
                            <?php
                                for($i=0;$i<count($Contenidos);$i++){
                                    
                                    $Texto = NULL;
                                    
                                    if($_SESSION['_IDIOMA']==$IDIOMA_ESP)
                                        $Texto= $Contenidos[$i]->contenidoEsp;
                                    else
                                        $Texto= $Contenidos[$i]->contenidoIng;
                                    
                                    echo "<li><a href='#'>".$Texto."</a></li>";
                                }
                            ?>
                            </ol>

                        </td>
                    </tr>                   
                </table>
            </div>
        </div>
    </body>
</html>
